<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title> 动态修改CSS样式 </title>
</head>
<body>

    <h1>下午好</h1>
    
</body>
<script src="../lib/jquery.min.js"></script>
<script>
    $(function(){
        //1 .获取CSS属性值
        let fs = $('h1').css('font-size');
        console.log(fs);
        //2. 设置单个的属性值
        $('h1').css('font-size','60px');

        //3.设置多个属性值
        // $('h1').css({
        //     'font-size':'80px',
        //     'color':'red',
        //     'border':'1px solid #444'
        // });
        
    });
</script>
</html>